package com.whacos.modules.oa.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.whacos.modules.oa.entity.Notify;
import com.whacos.modules.oa.dto.NotifyDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author xiongdun
 * @description 通知通告
 * @since 2018/11/17 17:11
 */
@Mapper
public interface NotifyDao extends BaseMapper<Notify> {

    IPage<NotifyDTO> pageNotifyDTOList(IPage<NotifyDTO> page,
                                       @Param(value = "id") Long id,
                                       @Param(value = "isRead") Integer isRead,
                                       @Param(value = "userId") Long userId,
                                       @Param(value = "readDate") Date readDate,
                                       @Param(value = "notifyId") Long notifyId);

    long countNotifyDTO(NotifyDTO notifyDTO);
}
